#include "basic_primitives.hpp"

#include "typedefs.hpp"
#include "bitmap.hpp"

/*void clearToColor( Bitmap8* bitmap, unsigned char color )
{
	unsigned int bufferSize = bitmap->dataSize;
	unsigned int halfFillData = ( color << 8 ) | color;
	unsigned int fillData = ( halfFillData << 16 ) | halfFillData;
	unsigned int i = 0;
	unsigned int limit = (bufferSize >> 2);
	unsigned char* data = bitmap->data;
	for( ; i < limit; ++i )
	{
		reinterpret_cast<unsigned int*>(data)[i] = fillData;
	}
	i = i << 2;
	for ( ; i < bufferSize; ++i )
	{
		data[i] = color;
	}
}*/
